package com.hdu.point_offer;

public class lcr190 {
    class Solution {
        public int encryptionCalculate(int dataA, int dataB) {
            while (dataB != 0) {
                int temp = dataA ^ dataB;
                dataB = (dataA & dataB) << 1;
                dataA = temp;
            }
            return dataA;
        }
    }
}
